package com.dao;
import com.entity.MyUser;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface UserDao {

    MyUser findUserByUsername(@Param("username")String username);

    void registerUser(@Param("username")String username,
                      @Param("password")String password,
                      @Param("phoneNumber")String phoneNumber,
                      @Param("role")String role);

    int getUserCount();

    String findUserByUserRole(@Param("username")String username);

    boolean modifyPwd(@Param("password")String password,@Param("username")String username);
}
